const http = uni.$u.http

// 查询所有分类
export const getKinds = (data) => http.get('/kinds/select', {data, custom: {successToast: false}})

// 添加分类
export const addKind = params => http.post('/kinds/add', params, {custom: {successToast: false}})

// 删除分类
export const removeKind = params => http.post('/kinds/remove', params)

// 修改分类
export const updatekind = params => http.post('/kinds/update', params)

// 排序
export const sortKinds = params => http.post('/kinds/sort', params)